package hp.com.entity;

public class Product {
    private int id;              // 主键
    private String pname;           // 商品名称
    private String description;     // 商品描述
    private String category;           // 一级所属分类
    private int categoryLevel2;        // 商品二级分类
    private String picname;     // 主图链接集
    private String detailpics;  // 详情图片链接集
    private String detailinformation;  // 产品规格
    private String easyName;    //简短名字
    private String cateText;//一级分类明文
    private String cateLvl2Text;//二级分类明文

    public String getCateText() {
        return cateText;
    }

    public void setCateText(String cateText) {
        this.cateText = cateText;
    }

    public String getCateLvl2Text() {
        return cateLvl2Text;
    }

    public void setCateLvl2Text(String cateLvl2Text) {
        this.cateLvl2Text = cateLvl2Text;
    }

    public Product() {
    }

    public Product(int id, String pname, String description, String category, int categoryLevel2, String picname, String detailpics, String detailinformation,String easyName) {
        this.id = id;
        this.pname = pname;
        this.description = description;
        this.category = category;
        this.categoryLevel2 = categoryLevel2;
        this.picname = picname;
        this.detailpics = detailpics;
        this.detailinformation = detailinformation;
        this.easyName =easyName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getCategoryLevel2() {
        return categoryLevel2;
    }

    public void setCategoryLevel2(int categoryLevel2) {
        this.categoryLevel2 = categoryLevel2;
    }

    public String getPicname() {
        return picname;
    }

    public void setPicname(String picname) {
        this.picname = picname;
    }

    public String getDetailpics() {
        return detailpics;
    }

    public void setDetailpics(String detailpics) {
        this.detailpics = detailpics;
    }

    public String getDetailinformation() {
        return detailinformation;
    }

    public void setDetailinformation(String detailinformation) {
        this.detailinformation = detailinformation;
    }

    public String getEasyName() {
        return easyName;
    }

    public void setEasyName(String easyName) {
        this.easyName = easyName;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", pname='" + pname + '\'' +
                ", description='" + description + '\'' +
                ", category='" + category + '\'' +
                ", categoryLevel2=" + categoryLevel2 +
                ", picname='" + picname + '\'' +
                ", detailpics='" + detailpics + '\'' +
                ", detailinformation='" + detailinformation + '\'' +
                ", easyName='" + easyName + '\'' +
                '}';
    }
}
